package com.sinosoft.jwjw.component.mapper.system;

import com.sinosoft.jwjw.base.BaseCrudMapper;
import com.sinosoft.jwjw.component.model.system.SDataDictionaryCodeNode;
import net.sf.json.JSONArray;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SDataDictionaryCodeNodeMapper extends BaseCrudMapper<SDataDictionaryCodeNode,String> {

    List<SDataDictionaryCodeNode> queryAll(Map<String, Object> paramsMap);

    void deleteByParentId(String id);

    void deleteByParentIdOrId(String id);


    JSONArray queryCodeByType(String codeType);
}